<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table>
    <tr>
        <th colspan="5">User List</th>
    </tr>
    <tr>
        <th>id</th>
        <th>name</th>
        <th>age</th>
        <th>gender</th>
        <th>options</th>
    </tr>
    <tr th:each="user : ${userList}">
        <td th:text="${user.id}"></td>
        <td th:text="${user.name}"></td>
        <td th:text="${user.age}"></td>
        <td th:text="${user.gender}"></td>
        <td>
            <a th:href="@{/}">update</a>
            <a th:href="@{'/delete/'+${user.id}}">delete</a>
        </td>
    </tr>
</table>
<form method="post">
    <input type="hidden" name="_method" value="delete">
</form>
</body>
</html>